package com.amos.base.repository;

import com.amos.base.base.BaseEntity;

/**
 * Repository层接口
 * @author Amos
 * @param <T>
 */
public interface Repository<T extends BaseEntity> {

    int save(T entity);

    int deleteByPrimaryKey(String id);

    int insert(T record);

    int insertSelective(T record);

    T selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(T record);

    int updateByPrimaryKey(T record);

}
